home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 12
/
Cream of the Crop 12 (Part II)
/
Cream of the Crop 12 (Part II).iso
/
OS2
/
XCO212P.ZIP
/
SAMPLES
/
CSET
/
c_test.c
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1996-03-05
|
271 b
|
14 lines
/*
Example of multi-language programming: C function is called from M2
*/
#include <stdio.h>
int c_func(int a, int b)
{
printf("\nThis is a C function called by M2 procedure\n");
printf("c_func (%d, %d)\n", a, b);
return a+b;
}